package com.coderman.common.model.business;

import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * MyBatis Generator工具自动生成2023/01/09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(name = "`c_class`")
@Excel("班级信息表")
public class ClassInfo {
    @Id
    @Column(name = "`classId`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("")
    private Integer classid;

    @Column(name = "`className`")
    @ApiModelProperty("")
    @ExcelField(value = "班级名称", width = 90) //导出字段名
    private String classname;

    @Column(name = "`createTime`")
    @ApiModelProperty("")
    @ExcelField(value = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss",width = 100)
    private String createtime;

    @Column(name = "`headmaster`")
    @ApiModelProperty("")
    @ExcelField(value = "班主任", width = 90) //导出字段名
    private Integer headmaster;

    @Column(name = "`instructor`")
    @ApiModelProperty("")
    @ExcelField(value = "教员", width = 90) //导出字段名
    private Integer instructor;

    @Column(name = "`employmentGuide`")
    @ApiModelProperty("")
    @ExcelField(value = "就业老师", width = 90) //导出字段名
    private Integer employmentguide;

    /**
     * 1：代表正常
            2：代表已合班
            3：代表已就业
     */
    @Column(name = "`clsStatus`")
    @ApiModelProperty("1：代表正常            2：代表已合班            3：代表已就业")
    @ExcelField(value = "班级状态", width = 50) //导出字段名
    private Integer clsstatus;

    @Column(name = "`remarks`")
    @ApiModelProperty("备注")
    @ExcelField(value = "备注", width = 50) //导出字段名
    private String remarks;

    private transient String master;

    private transient String instname;

    private transient String guidename;

    public ClassInfo(Integer classid) {
        this.classid = classid;
    }
}
